home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Select (Limited Edition)
/
Computer Select.iso
/
dobbs
/
v16n10
/
string.exe
/
STRISREP.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1991-07-30
|
285 b
|
18 lines
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <string.hpp>
srep::srep(int n, const char *s)
{
refs = 0;
length = n;
if (s)
memmove(body,s,n);
}
void *srep::operator new(size_t cs, size_t us)
{
return new char[cs+us-1];
}